struct mpeg_decode {
	AVFormatContext* ic;
	AVFrame* picture;
	char file_name[1024];
	unsigned char* rgb_data;
	int video_index;
	int audio_index;
	int is_update;
	pthread_mutex_t pos_mutex;
};
struct mpeg_decode* hunter_decode_alloc(char* file_name);
int hunter_decode_init(struct mpeg_decode* p_mpeg);
void hunter_decode_pos_set(struct mpeg_decode* p_mpeg, int pos);
int hunter_decode_get(struct mpeg_decode* p_mpeg, unsigned char** data);
void hunter_decode_close(struct mpeg_decode* p_mpeg);
